<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<jsp:directive.page contentType="text/html" pageEncoding="UTF-8" />
<html xmlns:jsp="http://java.sun.com/JSP/Page">

<spring:url value="/register" var="register"/>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Register user</title>
</head>
<body>
<div id="centered">
<jsp:include page="header.jsp" />
        <br/>
        <div class = "forms">
        	<form:form action="${register}" method="POST"
		modelAttribute="newUser">
  <table> 
   <tr>
   <td>
	First name: <form:input path="userFName" />
	</td>
	<td>
		<form:errors path="userFName" cssClass="errorLogin" element="div"/>
		</td>
	</tr>	
				
	<tr>	
	<td>
	Last name: <form:input path="userLName" />
</td>
<td>
	<form:errors path="userLName" cssClass="errorLogin" element="div"/>
	</td>
		</tr>
		
		<tr>
		<td>
	Password: <form:input path="password" />
</td>
<td>
	<form:errors path="password" cssClass="errorLogin" element="div"/>
	</td>
		</tr>
		
</table>
		<form:button>Submit</form:button>

	</form:form>
        </div>
        </div>
</body>
</html>